package app.common.utils.cjt.ao;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 世界媒体峰会缺货转移查询与详情请求参数
 * @author feizns
 * @since 2023/04/04
 */
@Data
public class WmsStockoutTransferQueryWithDetailAo {

    /**
     * 由逗号隔开的整数字符串
     * 出库单状态:
     * 5已取消
     * 48 未确认
     * 50 待审核
     * 77 拣货中
     * 110已完成
     */
    private String status = "110";

    /**
     * 开始时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime start_time;

    /**
     * 结束时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime end_time;

    public WmsStockoutTransferQueryWithDetailAo(LocalDateTime start_time) {
        this.start_time = start_time;
        this.end_time = LocalDateTime.now();
    }

    public WmsStockoutTransferQueryWithDetailAo(LocalDateTime start_time, LocalDateTime end_time) {
        this.start_time = start_time;
        this.end_time = end_time;
    }
}
